<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	//test push
	String cookieName = "AirportUser";
	Cookie cookies[] = request.getCookies();
	String username = null;
	if (cookies != null) {
		for (int i = 0; i < cookies.length; i++) {
			if (cookies[i].getName().equals(cookieName)) {
				username = cookies[i].getValue();
				break;
			}
		}
	}
%>
	<title>Airport Traveler App | CSE 5911 Project AU12</title>
 <!--[if IE]>
	<link rel="stylesheet" type="text/css" href="ie.css" />
	
<![endif]-->
	

<link rel="stylesheet" media="screen and (min-device-width: 800px)" href="full_style.css" />
<link rel='stylesheet' media='screen and (min-width: 300px) and (max-width: 799px)' href='mobile_style.css' />
<html>
	<center>
  
<header> 
<![if ! IE]>

<table width="100%">
		<tr>
		<td width="35%"><a href="<s:url action = "index"/>"><img width="100%" src="images/logo.png" border="0"></a></td>

		<td width="65%"><p align="right">
		<table><tr>
		<td><a href="<s:url action="flightTimes"/>"><img width="100%" src="images/flight_times.png" border="0"></a><br><a href="<s:url action="terminalMap"/>"><img width="100%" src="images/terminal_maps.png" border="0"></a></td>
		
		</tr></table>
		</p>
		</td>
		</tr>

		<tr><td valign="top">

		</tr></td></table> 
		</p>
<![endif]>

 <!--[if IE]>
		<table width="100%" style="background-color: #80B2FF;">
		<tr>
		<td width="35%"><a href="<s:url action = "index"/>"><img src="images/logo.png" border="0"></a></td>

		<td width="65%"><p align="right">
		<table><tr>
		<td><a href="flight_times.jsp"><img src="images/flight_times.png" border="0"></a><br><a href="terminal_maps.jsp"><img src="images/terminal_maps.png" border="0"></a></td>
		
		</tr></table>
		</p>
		</td>
		</tr>

		<tr><td valign="top">
		</tr></td></table> 
		</p>

		
<![endif]-->
    
		
		
	</header>	


	<div>
Error:
<h3>
<s:label name="error" /><br>
</h3>
<br>
<span id="time" style="background:red">5</span>seconds later automatically redirect, if it doesn't redirect, please click

<script language="JavaScript1.2" type="text/javascript">
<!--
//  Place this in the 'head' section of your page.  test

function delayURL(url) {
    var delay = document.getElementById("time").innerHTML;
//alert(delay);
    if(delay > 0) {
        delay--;
        document.getElementById("time").innerHTML = delay;
    } else {
        window.top.location.href = url;
    }
    setTimeout("delayURL('" + url + "')", 1000); //delayURL(http://www.chenfy.com)
}

//-->

</script>

<a href="displayPMList.action">here</a>
<script type="text/javascript">
    delayURL("displayPMList.action");
</script>
</div>
	
<footer>
	<font size="1">
	<a href="user_guide.jsp">Help</a>| Copyright 2012
	</font>
	
	</footer>
	</center>
</html>